package cn.wgx.common.entity.mind;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@TableName("mind_block")
public class MindBlock extends MindBaseEntity implements Serializable {
    /**
    * 区块ID
    */
    @TableId(type = IdType.AUTO)
    private Integer block_id;

    @NotNull(message = "项目ID不能为空")
    private Integer pro_id;

    @NotNull(message = "通道ID不能为空")
    private Integer channel_id;

    @NotBlank
    private String title;

    private String color;

    private Integer sort;


    private Double x;
    private Double y;
}